package top.oylan.manager.entity.api;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

@Data
@ApiModel
@XmlRootElement(name = "root")
public class BaseApi<T> implements Serializable {

    @ApiModelProperty("错误码")
    private int code;

    @ApiModelProperty("信息")
    private String msg;

    @ApiModelProperty("数据")
    private T data;
}
